﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" CodeBehind="Products.aspx.cs" Inherits="TwoWheels.WebForm2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Products
    </h2>
    <br /><br />
    
    <asp:DataList ID="DataList" runat="server" RepeatColumns="5" RepeatDirection="Horizontal" GridLines="None">
     <ItemTemplate>
      <asp:HyperLink runat="server" ID="hyperSponsor" NavigateUrl='<%# "~/productsList.aspx?id=" + Eval( "NazwaKategorii" ) %>'>  
       <asp:Image runat="server" ID="Image" BorderWidth="0" AlternateText="image" ImageUrl='<%# "~/ShowImage.aspx?id=" + Eval( "KategoriaID" ) + "&source=Kategoria" %>' />
      </asp:HyperLink>
      <br />
      <center>
       <asp:Label  ID="label" runat="server" Text='<%# Eval ( "NazwaKategorii" ) %>'>
       </asp:Label>    
      </center>  
     </ItemTemplate>
    </asp:DataList>
</asp:Content>
